﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;


namespace _Log4net日志测试
{

    class Program
    {
        static void Main(string[] args)
        {
          
            ILog Log = LogManager.GetLogger(typeof(Program));
            Log.Info("测试消息");
            Log.Debug("出现异常", new Exception("我是异常消息！"));

            Console.ReadKey();
        }
    }
}
